import riskClient from "./riskClient";
import { getQueryString } from '@commonMethod'

export const receiveMapPlace = async () => {

  const params = {
    encryptData: getQueryString("encryptData"), //获取url中的encryptData参数
    partnerCode: getQueryString("partnerCode"), //获取url中的partnerCode参数
  };

  return await riskClient.postAsync({
    url: 'api/map/receiveMapPlace',
    params,
    auth:false,
  })

}

// 提交
export const encryptMapPlace = async (params) => {
  return await riskClient.postAsync({
    url: 'api/map/encryptMapPlace',
    params,
  })
};